package com.xyht.sca_s.student_manage_system.modules.visitor.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.visitor.entity.vo.SmsVisitorNeedKnowVO;
import com.xyht.sca_s.student_manage_system.modules.visitor.service.SmsVisitorNeedKnowService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-05-07
 */
@SecretBody
@RestController
@RequestMapping("/visitor/smsVisitorNeedKnow")
public class SmsVisitorNeedKnowController {
    @Autowired
    SmsVisitorNeedKnowService smsVisitorNeedKnowService;
    @ApiOperation("新增入校需知")
    @PostMapping("/smsVisitorNeedKnowAdd")
    public ResponseResult smsVisitorNeedKnowAdd(@RequestBody SmsVisitorNeedKnowVO smsVisitorNeedKnow){
        return smsVisitorNeedKnowService.smsVisitorNeedKnowAdd(smsVisitorNeedKnow);
    }
    @ApiOperation("修改入校需知")
    @PostMapping("/updateSmsVisitorNeedKnow")
    public ResponseResult updateSmsVisitorNeedKnow(@RequestBody SmsVisitorNeedKnowVO smsVisitorNeedKnow){
        return smsVisitorNeedKnowService.updateSmsVisitorNeedKnow(smsVisitorNeedKnow);
    }
    @ApiOperation("查询入校需知")
    @GetMapping("/selectSmsVisitorNeedKnow")
    public ResponseResult selectSmsVisitorNeedKnow() {
        return smsVisitorNeedKnowService.selectSmsVisitorNeedKnow();
    }
    @ApiOperation("查询入校需知详情")
    @GetMapping("/selectSmsVisitorNeedKnowById")
    public ResponseResult selectSmsVisitorNeedKnowById(String id) {
        return smsVisitorNeedKnowService.selectSmsVisitorNeedKnowById(id);
    }
}

